package com.example.demo.entity;


/**
 * @Author: WinstonDeng
 * @Description:
 * @Date: Created in 18:10 2020/4/7
 * @Modified by:
 */
public class Question {
    private long id;
    private long questionnaireId;
    private int orderNum;
    private String desc;
    private AnswerList answerList;
    private String choice;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getQuestionnaireId() {
        return questionnaireId;
    }

    public void setQuestionnaireId(long questionnaireId) {
        this.questionnaireId = questionnaireId;
    }

    public int getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(int orderNum) {
        this.orderNum = orderNum;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public AnswerList getAnswerList() {
        return answerList;
    }

    public void setAnswerList(AnswerList answerList) {
        this.answerList = answerList;
    }

    public String getChoice() {
        return choice;
    }

    public void setChoice(String choice) {
        this.choice = choice;
    }

    @Override
    public String toString() {
        return "Question{" +
                "id=" + id +
                ", questionnaireId=" + questionnaireId +
                ", orderNum=" + orderNum +
                ", desc='" + desc + '\'' +
                ", answerList=" + answerList +
                ", choice='" + choice + '\'' +
                '}';
    }

}
